
var FFFeedObject = Class.create(FFEntryFrom, {
  
  initialize: function(obj){
	this.from = new FFEntryFrom(obj);
	this.entries = obj.entries;
	this.numberOfEntries = obj.entries.length;
  },
  
  getEntries: function(){
	return this.entries;  
  },
  
  //EXTRA METHODDS
  
  getNumberOfEntries: function(){
	  return this.numberOfEntries;
  },
  
  getEntry: function(k){
	  return this.entries[k];
  },
  
  toString: function(isHtml){
	var newLine = "\n";
	if(isHtml) newLine = '<br/>';
    var feedToString = '';
    feedToString += this.from.toString(true);
    feedToString += 'numberOfEntries: ' + this.numberOfEntries + newLine;
    for(var j=0; j<this.numberOfEntries; j++){
      var entry = new FFEntry(this.entries[j]);	
      feedToString += 'Entry number ' + j + newLine
      feedToString += entry.toString(true);
      feedToString += '-----' + newLine;
    }
    
    return feedToString;
  }
  
});